package com.mall.project.gs.model.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import com.mall.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author Sam
 * @since 2021-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("gs_order_info")
@ApiModel(value = "OrderInfo对象", description = "订单")
public class OrderInfo extends Convert {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "PK")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "逻辑删除标记（0：显示；1：隐藏）")
    private Integer delFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "订单单号")
    private String orderNo;

    @ApiModelProperty(value = "支付方式1、货到付款；2、在线支付")
    private String paymentWay;

    @ApiModelProperty(value = "是否支付0、未支付 1、已支付")
    private String isPay;

    @ApiModelProperty(value = "订单名")
    private String name;

    @ApiModelProperty(value = "订单状态1、待发货 2、待收货 3、确认收货/已完成 5、已关闭")
    private String status;

    @ApiModelProperty(value = "运费金额")
    private BigDecimal freightPrice;

    @ApiModelProperty(value = "销售金额")
    private BigDecimal salesPrice;

    @ApiModelProperty(value = "支付金额（销售金额+运费金额）")
    private BigDecimal paymentPrice;

    @ApiModelProperty(value = "付款时间")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "发货时间")
    private LocalDateTime deliveryTime;

    @ApiModelProperty(value = "收货时间")
    private LocalDateTime receiverTime;

    @ApiModelProperty(value = "成交时间")
    private LocalDateTime closingTime;

    @ApiModelProperty(value = "买家留言")
    private String userMessage;

    @ApiModelProperty(value = "支付交易ID")
    private String transactionId;

    @ApiModelProperty(value = "物流id")
    private String logisticsId;

    @ApiModelProperty(value = "备注")
    private String remark;


}
